
    //% color="#ffaa00" iconWidth=50 iconHeight=40
    namespace mmWave{
       //% block="初始化" blockType="tag"
       export function initmode2l() {}    
    //% block="初始化传感器【硬串口】引脚RX[RX]TX[TX]" blockType="command"
    //% RX.shadow="dropdown" RX.options="RX" 
    //% TX.shadow="dropdown" TX.options="TX" 
    export function myBlock2(parameter: any, block: any) {
        let RX= parameter.RX.code
        let TX= parameter.TX.code
        Generator.addInclude("myBlock3061",`#include "DFRobot_HumanDetection.h"`)
        Generator.addObject("myBlock2726",`DFRobot_HumanDetection hu`,"")
        Generator.addCode(`hu.begin(&Serial, 0, 1);`)
    }
    //% block="初始化传感器【软串口】引脚RX[RA]TX[TB]" blockType="command"
    //% RA.shadow="dropdown" RA.options="RA" 
    //% TB.shadow="dropdown" TB.options="TB" 
    export function myBlock19(parameter: any, block: any) {
        let RA= parameter.RA.code
        let TB= parameter.TB.code
        Generator.addInclude("myBlock3623",`#include "DFRobot_HumanDetection.h"
#include <SoftwareSerial.h>
SoftwareSerial softSerialHu(${RA}, ${TB});`)
        Generator.addObject("myBlock3927",`DFRobot_HumanDetection hu`,"")
        Generator.addCode(`hu.begin(&softSerialHu);`)
    }
    //% block="设置传感器的工作模式[MODE]" blockType="command"
    //% MODE.shadow="dropdown" MODE.options="MODE" 
    export function myBlock3(parameter: any, block: any) {
        let MODE= parameter.MODE.code
        Generator.addCode(`hu.configWorkMode(hu.${MODE});`)
    }
    //% block="设置检测到[A]事件[B]指示灯" blockType="command"
    //% A.shadow="dropdown" A.options="A" 
    //% B.shadow="dropdown" B.options="B" 
    export function myBlock4(parameter: any, block: any) {
        let A= parameter.A.code
        let B= parameter.B.code
        Generator.addCode(`hu.configLEDLight(hu.${A}, ${B});`)
    }
    //% block="执行传感器复位操作" blockType="command"
    export function myBlock5(parameter: any, block: any) {
        Generator.addCode(`hu.sensorRet();`)
    }
       //% block="---" blockType="tag"
       export function initmode2l2() {}    
    //% block="获取当前工作模式" blockType="reporter"
    export function myBlock17(parameter: any, block: any) {
        Generator.addCode(`hu.getWorkMode()`)
    }
    //% block="获取[A]模式下LED指示灯的当前状态" blockType="reporter"
    //% A.shadow="dropdown" A.options="A" 
    export function myBlock6(parameter: any, block: any) {
        let A= parameter.A.code
        Generator.addCode(`hu.getLEDLightState(hu.${A})`)
    }
    //% block="睡眠检测模式" blockType="tag"
    export function initmodel() {}
    //% block="获取[C]的信息" blockType="reporter"
    //% C.shadow="dropdown" C.options="C" 
    export function myBlock7(parameter: any, block: any) {
        let C= parameter.C.code
        Generator.addCode(`hu.smHumanData(hu.${C})`)
    }
    //% block="获取[D]值" blockType="reporter"
    //% D.shadow="dropdown" D.options="D" 
    export function myBlock8(parameter: any, block: any) {
        let D= parameter.D.code
        Generator.addCode(`hu.${D}()`)
    }
    //% block="获取[E]" blockType="reporter"
    //% E.shadow="dropdown" E.options="E" 
    export function myBlock9(parameter: any, block: any) {
        let E= parameter.E.code
        Generator.addCode(`hu.${E}()`)
    }
    //% block="跌倒检测模式" blockType="tag"
    export function initmodel1() {}
    //% block="设置传感器的安装高度[F]cm" blockType="command"
    //% F.shadow="number" F.defl=270
    export function myBlock10(parameter: any, block: any) {
        let F= parameter.F.code
        Generator.addCode(`hu.dmInstallHeight(${F});`)
    }
    //% block="设置传感器检测到跌倒后的延迟输出时间[F]s" blockType="command"
    //% F.shadow="number" F.defl=5
    export function myBlock11(parameter: any, block: any) {
        let F= parameter.F.code
        Generator.addCode(`hu.dmFallTime(${F});`)
    }
    //% block="设置检测离开传感器间隔时间[F]s" blockType="command"
    //% F.shadow="number" F.defl=1
    export function myBlock12(parameter: any, block: any) {
        let F= parameter.F.code
        Generator.addCode(`hu.dmUnmannedTime(${F});`)
    }
    //% block="设置传感器检测范围内的停留时间[F]s" blockType="command"
    //% F.shadow="number" F.defl=200
    export function myBlock15(parameter: any, block: any) {
        let F= parameter.F.code
        Generator.addCode(`hu.dmFallConfig(hu.eResidenceTime, ${F}); `)
    }
    //% block="设置跌倒检测的灵敏度[F]s" blockType="command"
    //% F.shadow="number" F.defl=3
    export function myBlock16(parameter: any, block: any) {
        let F= parameter.F.code
        Generator.addCode(`hu.dmFallConfig(hu.eFallSensitivityC, ${F});`)
    }
    //% block="获取[G]" blockType="reporter"
    //% G.shadow="dropdown" G.options="G" 
    export function myBlock13(parameter: any, block: any) {
        let G= parameter.G.code
        Generator.addCode(`hu.${G}()`)
    }
    //% block="获取[H]" blockType="reporter"
    //% H.shadow="dropdown" H.options="H" 
    export function myBlock14(parameter: any, block: any) {
        let H= parameter.H.code
        Generator.addCode(`hu.getFallData(hu.${H})`)
    }
    }
    